﻿@{
    ViewBag.Title = "Machines";
}
@section Menu
{
    @Html.Partial("~/Views/Menu/Entries.cshtml", new ViewDataDictionary())
}
<script type="text/javascript">
    function openUpdateMachineDialog() {
        $("#divUpdateMachine").dialog({ modal: true, resizable: false });
    }
    function openUpdateMachineConfigurationDialog() {
        $("#divUpdateMachineConfiguration").dialog({ modal: true, resizable: false, width: 550 });
    }
</script>
@Ajax.ActionLink("Create new", "ActionForm", null, new AjaxOptions { UpdateTargetId = "divUpdateMachine", OnComplete = "openUpdateMachineDialog" }, new { @class = "btn btn-primary" })
<br />
<br />
<div id="divIndexMachine">
    @Html.Action("Index")
</div>
<div id="divUpdateMachine" title="Machine form">
</div>
<div id="divUpdateMachineConfiguration" title="Configuration">
</div>
